package utils;

public class Music {
    public static MusicPlayer gameStart;//游戏开始时的音乐
    public static MusicPlayer gameOver; //游戏结束时的音乐
    public static MusicPlayer injured;  //小鸟受击的音乐
    public static MusicPlayer pickUp;   //小鸟受击的音乐
    public static MusicPlayer click;    //点击屏幕的音乐
    public static MusicPlayer bgm;      //游戏中的背景音乐
    public static MusicPlayer fire;     //小鸟发出火焰的音乐
    public static MusicPlayer ghostDie; //骷髅对象死亡的音乐
    public static MusicPlayer blast;    //R技能爆炸音效
    public static MusicPlayer gale;     //W技能风雪音效

    //初始化音乐对象
    static {
        gameStart = new MusicPlayer("./resources/Music/gameStart.wav");
        gameOver = new MusicPlayer("./resources/Music/gameOver.wav");
        injured = new MusicPlayer("./resources/Music/injured.wav");
        pickUp = new MusicPlayer("./resources/Music/pickUp.wav");
        click = new MusicPlayer("./resources/Music/click.wav");
        bgm = new MusicPlayer("./resources/Music/BGM.wav");
        fire = new MusicPlayer("./resources/Music/fire.wav");
        ghostDie = new MusicPlayer("./resources/Music/ghostDie.wav");
        blast = new MusicPlayer("./resources/Music/blast.wav");
        gale = new MusicPlayer("./resources/Music/gale.wav");
    }
}
